﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace QYmall.Core.Model.Models
{
    /// <summary>
    /// 退换货商品
    /// </summary>
    public class OrderRefundGoods
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [Display(Name = "自增ID")]
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        /// <summary>
        /// 所属退换
        /// </summary>
        [Display(Name = "所属退换")]
        [ForeignKey("OrderRefund")]
        public long RefundId { get; set; }

        /// <summary>
        /// 所属订单货品
        /// </summary>
        [Display(Name = "所属订单货品")]
        [ForeignKey("OrderGoods")]
        public long OrderGoodsId { get; set; }

        /// <summary>
        /// 订单退换货信息
        /// </summary>
        public OrderRefund? OrderRefund { get; set; }

        /// <summary>
        /// 订单货品
        /// </summary>
        public OrderGoods? OrderGoods { get; set; }

    }
}
